import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store/index'
import './plugins/element.js'
import "./assets/icons/index"
Vue.config.productionTip = false
import iconPicker from 'e-icon-picker';
import "e-icon-picker/lib/symbol.js"; //基本彩色图标库
import 'e-icon-picker/lib/index.css'; // 基本样式，包含基本图标
import 'font-awesome/css/font-awesome.min.css'; //font-awesome 图标库
import 'element-ui/lib/theme-chalk/icon.css'; //element-ui 图标库
import localIcon  from  "@/assets/icons/iconfont.json"
import "@/assets/icons/iconfont.css"
import {analyzingIconForIconfont} from 'e-icon-picker/src/utils'
let addIconList=analyzingIconForIconfont(localIcon)
// 引入富文本组件
import Vue2Editor from "vue2-editor";
// 用于自定义字体颜色样式等
import './assets/css/rickText.css';
import * as echarts from 'echarts';
import  echartsJson from './assets/json/expert-echarts.json'
echarts.registerTheme('default',echartsJson)
Vue.prototype.$echarts = echarts  //定义为全局变量
Vue.use(Vue2Editor);

Vue.use(iconPicker, { eIcon: true, ElementUI: true, addIconList:addIconList.list ,FontAwesome: true, eIconSymbol: true });
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
